<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>分类修改</title>

    <link th:href="@{/layui/css/layui.css}" rel="stylesheet"/>
</head>
<body>
    <fieldset class="layui-elem-field layui-field-title" style="margin-top: 30px;">
        <legend>分类修改</legend>
    </fieldset>
    <form class="layui-form" action="/banner/AddBanner" enctype="multipart/form-data">
        <div class="layui-form-item">
            <label class="layui-form-label">分类名称</label>
            <div class="layui-input-block">
                <input type="text" name="title" required  lay-verify="required" placeholder="请输入标题" autocomplete="off" class="layui-input">
            </div>
        </div>

        <div class="layui-form-item">
            <div class="layui-input-block">
                <input type="submit" value="立即修改" class="layui-btn" lay-filter="formDemo">
                <button type="reset" class="layui-btn layui-btn-primary">重置</button>
            </div>
        </div>
</form>



    <script th:src="@{/layui/layui.js}"></script>
    <script>
    //Demo
    layui.use('form', function(){
        var form = layui.form;

        //监听提交
        form.on('submit(formDemo)', function(data){
            layer.msg(JSON.stringify(data.field));
            return false;
        });
    });
</script>
</body>
</html>